package com.eastfair.pay.enums;

import lombok.Getter;

/**
 * 交易类型
 */
@Getter
public enum ChinaumsStatusEnum {

    NEW_ORDER("NEW_ORDER", "新订单"),
    UNKNOWN("UNKNOWN", "不明确的交易状态"),
    TRADE_CLOSED("TRADE_CLOSED", "在指定时间段内未支付时关闭的交易；在交易 完成全额退款成功时关闭的交易；支付失败的 交易。"),
    WAIT_BUYER_PAY("WAIT_BUYER_PAY", "交易创建，等待买家付款。"),
    TRADE_SUCCESS("TRADE_SUCCESS", "支付成功"),
    TRADE_REFUND("TRADE_REFUND", "订单转入退货流程"),
    ;

    private String code;

    private String text;

    ChinaumsStatusEnum(String code, String text) {
        this.code = code;
        this.text = text;
    }
}
